package com.jinyang.jetpackdemo.bean

/**
 * @Author: LiuJinYang
 * @CreateDate: 2021/12/1
 * @Description:
 */
data class UserInfo(
    var name: String? = null,
    var age: Int = 0,
    var email: String? = null,
    var married: Boolean = false
)

fun main() {
    UserInfo("name")
    UserInfo("name",18)
    UserInfo("name",18, married = true)
    UserInfo(age = 18, married = true)
    UserInfo(email = "xxx@qq.com")
}